//
//  YLExchangeRecordTableViewCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/11.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLExchangeRecordTableViewCell.h"
#import "YLGlobeHeader.h"
#import "YLExchangeRecordModel.h"
@interface YLExchangeRecordTableViewCell ()
// 标题
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
// 积分
@property (weak, nonatomic) IBOutlet UILabel *integralLabel;
// 时间
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;


@end

@implementation YLExchangeRecordTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _titleLabel.textColor = YLGayColor;
    _integralLabel.textColor = YLMainColor;
    _timeLabel.textColor = [UIColor lightGrayColor];
    
    _titleLabel.text = @"积分兑换 - HELLO KITTY陶瓷碗x2";
    _integralLabel.text = @"2048";
    _timeLabel.text = @"1234";
}

- (void)setModel:(YLExchangeRecordModel *)model
{
    _model = model;
    _titleLabel.text = model.orderText;
    _integralLabel.text = model.pointAmount;
    _timeLabel.text = model.createTimeText;
   
}

+ (NSString *)cellID
{
    return @"YLExchangeRecordTableViewCell";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
